package login

import (
	"4-26zk/comment/proto/product"
	"4-26zk/service/server"
	"context"
)

type ProductServer struct {
	product.UnimplementedProductServer
}

func (p ProductServer) ProductCreate(ctx context.Context, req *product.ProductCreateReq) (*product.ProductCreateResp, error) {
	create, err := server.ProductCreate(req)
	if err != nil {
		return nil, err
	}
	return create, nil
}
func (p ProductServer) ProductOtherInfoCreate(ctx context.Context, req *product.ProductOtherInfoCreateReq) (*product.ProductOtherInfoCreateResp, error) {
	create, err := server.ProductOtherInfoCreate(req)
	if err != nil {
		return nil, err
	}
	return create, nil
}
func (p ProductServer) ProductSpecificationsCreate(ctx context.Context, req *product.ProductSpecificationsCreateReq) (*product.ProductSpecificationsCreateResp, error) {
	create, err := server.ProductSpecificationsCreate(req)
	if err != nil {
		return nil, err
	}
	return create, nil
}
func (p ProductServer) ProductList(ctx context.Context, req *product.ProductListReq) (*product.ProductListResp, error) {
	create, err := server.ProductList(req)
	if err != nil {
		return nil, err
	}
	return create, nil
}
